package com.shouxin.attendance.database.model;

import com.alibaba.fastjson.annotation.JSONField;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Generated;

@Entity(nameInDb = "t_custody")
public class Custody {

	@Id
	@JSONField(name = "user_id")
	private Long id;

	@NotNull
	private String name;

	private String head;

	private String relation;

	@JSONField(name = "pickup_card")
	private String card;

	@Generated(hash = 271014631)
	public Custody(Long id, @NotNull String name, String head, String relation,
									String card) {
					this.id = id;
					this.name = name;
					this.head = head;
					this.relation = relation;
					this.card = card;
	}

	@Generated(hash = 1646388942)
	public Custody() {
	}

	public Long getId() {
					return this.id;
	}

	public void setId(Long id) {
					this.id = id;
	}

	public String getName() {
					return this.name;
	}

	public void setName(String name) {
					this.name = name;
	}

	public String getHead() {
					return this.head;
	}

	public void setHead(String head) {
					this.head = head;
	}

	public String getRelation() {
					return this.relation;
	}

	public void setRelation(String relation) {
					this.relation = relation;
	}

	public String getCard() {
					return this.card;
	}

	public void setCard(String card) {
					this.card = card;
	}

}
